{template 'common/header'}

<div class="main panel panel-default">
	<div class="panel-body table-responsive">
		<form action="" method="post">
		<table class="table table-hover">
			<thead class="navbar-inner">
				<tr>
					<th>名称</th>
					{if $type == 'xcxpath' || $type == 'gzhpath'}
					<th>路径</th>
					{else}
					<th>id</th>
					<th>时间</th>
					<th>logo图片</th>
					<th>banner图片</th>
					<th>api链接</th>
					{/if}
				</tr>
			</thead>
			<tbody>
				{loop $list $adv}
				<tr>
					<td>{$adv['title']}</td>
					{if $type == 'xcxpath' || $type == 'gzhpath'}
					<td>{$adv['api_url']}</td>
					{else}
					<td>{$adv['id']}</td>
					<td>{$adv['starttime']}至{$adv['endtime']}</td>
					<td><img src="{$adv['logo']}" height="35px"/></td>
					<td><img src="{$adv['banner']}" height="35px"/></td>
					<td>{$adv['api_url']}</td>
					{/if}
				</tr>
				{/loop}
			</tbody>
		</table>
		{$pager}
		</form>
	</div>
</div>
{template 'common/footer'}